home *** CD-ROM | disk | FTP | other *** search
- Path: birdland.rhein-neckar.de!usenet
- From: ulrich.thoenes@rhein-neckar.de (Ulrich Thoenes)
- Newsgroups: comp.lang.c++
- Subject: Static vs. dynamic linking with G++ under Linux 1.2.13
- Date: Fri, 12 Apr 1996 20:02:02 GMT
- Organization: Lullaby of Birdland
- Message-ID: <316eb0a8.4924575@birdland.rhein-neckar.de>
- NNTP-Posting-Host: lina.rhein-neckar.de
- X-Newsreader: Forte Agent .99d/16.182
-
- Hello everybody.
-
- I am a real beginner in C++ programming. I am using G++ Ver. 2.6.3
- from the Slackware 2.3. installation disks (D1 - D10) including all
- the other necessary stuff in there.
-
- During my first trial of programming I just did some some simple I/O
- from one file to another.
-
- using g++ -o program program.c the result was a 280kByte executable.
- Which is definetly to big for such a simple thing. I believe this is
- due the static linking prooven by the ldd program.
-
- My question is:
- How can I get to a dynamic linking so that I result in a significantly
- small executable. Do I need some special libraries or is there any
- special option when starting g++.
-
- Thanks, Ulli Thoenes
-
- e-mail: ulrich.thoenes@rhein-neckar.de
-